package org.westboy.model;

import javafx.beans.property.*;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;

public class Order {

    private ImageView icon;

    private IntegerProperty id;

    private StringProperty orderId;

    private StringProperty status;

    private FloatProperty price;

    private StringProperty buyer;

    private StringProperty consignee;

    private StringProperty createTime;

    private StringProperty des;

    private StringProperty orderNote;

    public Order() {
        this.icon = new javafx.scene.image.ImageView(new Image(getClass().getResource("/icons/icon_16x16.png").toExternalForm()));
        this.id = new SimpleIntegerProperty();
        this.orderId = new SimpleStringProperty();
        this.status = new SimpleStringProperty();
        this.price = new SimpleFloatProperty();
        this.buyer = new SimpleStringProperty();
        this.consignee = new SimpleStringProperty();
        this.createTime = new SimpleStringProperty();
        this.des = new SimpleStringProperty();
        this.orderNote = new SimpleStringProperty();
    }


    public ImageView getIcon() {
        return icon;
    }

    public void setIcon(ImageView icon) {
        this.icon = icon;
    }

    public int getId() {
        return id.get();
    }

    public IntegerProperty idProperty() {
        return id;
    }

    public void setId(int id) {
        this.id.set(id);
    }

    public String getOrderId() {
        return orderId.get();
    }

    public StringProperty orderIdProperty() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId.set(orderId);
    }

    public String getStatus() {
        return status.get();
    }

    public StringProperty statusProperty() {
        return status;
    }

    public void setStatus(String status) {
        this.status.set(status);
    }

    public float getPrice() {
        return price.get();
    }

    public FloatProperty priceProperty() {
        return price;
    }

    public void setPrice(float price) {
        this.price.set(price);
    }

    public String getBuyer() {
        return buyer.get();
    }

    public StringProperty buyerProperty() {
        return buyer;
    }

    public void setBuyer(String buyer) {
        this.buyer.set(buyer);
    }

    public String getConsignee() {
        return consignee.get();
    }

    public StringProperty consigneeProperty() {
        return consignee;
    }

    public void setConsignee(String consignee) {
        this.consignee.set(consignee);
    }

    public String getCreateTime() {
        return createTime.get();
    }

    public StringProperty createTimeProperty() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime.set(createTime);
    }

    public String getDes() {
        return des.get();
    }

    public StringProperty desProperty() {
        return des;
    }

    public void setDes(String des) {
        this.des.set(des);
    }

    public String getOrderNote() {
        return orderNote.get();
    }

    public StringProperty orderNoteProperty() {
        return orderNote;
    }

    public void setOrderNote(String orderNote) {
        this.orderNote.set(orderNote);
    }
}
